<script>
import {defineComponent} from 'vue'
import useCount from "@/hooks/useCount";
export default defineComponent({
  name: "right",
  setup(){
    return{
      ...useCount()
    }
  }
})
</script>

<template>
  <div class="right">
    <h1>right组件的count值是：{{count}}</h1>
    <button @click="add">+1</button>
    <button @click="sub">-1</button>
  </div>
</template>

<style scoped lang="less">

</style>
